package www.m01.springcloud.service;

import javax.annotation.Resource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import www.m01.springcloud.dao.PaymentDao;
import www.m01.springcloud.domains.Payment;

/**
 * PaymentService
 *
 * @author hyr
 * @date 2022/7/8
 */
@Service
public class PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    public Payment getPaymentById(@Param("id") Long id) {
        return paymentDao.getPaymentById(id);
    }


}
